{% extends 'base.html' %}
{% block content %}
<h1>Create a New Post</h1>
<form method="POST">
    {{ form.hidden_tag() }}
    <p>{{ form.title.label }} {{ form.title() }}</p>
    <p>{{ form.content.label }} {{ form.content() }}</p>
    <p>{{ form.submit() }}</p>
</form>

<div id="preview" style="border: 1px solid #ddd; padding: 1rem; margin-top: 1rem;">
    <h2>Title preview...</h2>
    <p>Content preview...</p>
</div>

{% endblock %}
